<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>苏宁</title>
		<script type="text/javascript">
			var controller = 'http://localhost/0423/suning/index.php/Index/Car';
			var root = 'http://localhost/0423/suning';
		</script>
		<link rel="stylesheet" href="http://localhost/0423/suning/Template/default/css/publicMenuforUser.css" />
		<link rel="stylesheet" href="http://localhost/0423/suning/Template/default/css/mycarStep_2.css" />
		<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/public.js"></script>
<script type="text/javascript" src="http://localhost/0423/suning/Template/default/js/mycar_2.js"></script>
	</head>

	<body>

		<!-- 头部开始 -->
		<div id="head">
			<!-- 头部内容开始 -->
			<div class="header">
				<!-- 登陆条 -->
				<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div class="loginbar">
					<div class="loginleft">
						<ul class="mobSN">
							<li>
								<a class="ph" href="http://localhost/0423/suning/Template/default/">手机苏宁 <em></em></a>
							</li>
							<div id="leftMob" class="leftMob">
								<div class="colose"></div>
								<div class="m_left">
									<span>扫一扫，下载易购客户端</span>
									<img src="http://localhost/0423/suning/Template/default/images/code.png" alt="" />
								</div>
								<div class="m_right">

									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-ebook.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-sn.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-pptv.png" alt="" />
									</li>
									<li>
										<img src="http://localhost/0423/suning/Template/default/images/app-suning.png" alt="" />
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">更多应用</a>
									</li>
								</div>
								<div class="m_bottom">
									<a href="http://localhost/0423/suning/Template/default/">
										<img src="http://localhost/0423/suning/Template/default/images/newreg.png" alt="" />
									</a>
								</div>

							</div>
						</ul>
						<ul class="alistnav">
							<li><a class="a_menu" href="http://localhost/0423/suning/Template/default/">网站导航 <em></em></a> <i class="new"></i>
							</li>
							<div class="navconts">
								<div class="colose"></div>
								<ul class="ul_first">
									<li class="fisrt_tit">特色购物</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁互联</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁V购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">礼品卡</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">海外购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">企业频道</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">大聚惠</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">0元试用</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">视频购物</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">TV购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">办公直通车</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">闪拍</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">预售</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">新发现</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">二手优品</a><i class="hot"></i>
									</li>
								</ul>
								<ul>
									<li class="fisrt_tit">主题频道</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电器城</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁超市</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">手机</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">运动馆</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">图书</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁置业</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">红孩子母婴</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">缤购美妆</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电脑</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">服装城</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">品牌街</a>
									</li>
								</ul>
								<ul>
									<li class="fisrt_tit">生活助手</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">零钱宝</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">手机充值</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">火车票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">转账还款</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁帮客</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">水电煤</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">保险</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">彩票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">机票</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">酒店团购</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">门店查询</a>
									</li>

								</ul>
								<ul>
									<li class="fisrt_tit">会员服务</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">会员联盟</a><i class="hot"></i>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁社区</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">延长保修</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">电子书</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">易付宝</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁理财</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">金融超市</a><i class="new"></i>
									</li>

								</ul>
								<ul>
									<li class="fisrt_tit">更多热点</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">满座网</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">PPTV</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">客户端</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">商家入驻</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁云</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁众包</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">苏宁联盟</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">用户体验</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">应用商店</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">公益频道</a>
									</li>
									<li><a href="http://localhost/0423/suning/Template/default/">校园代理</a><i class="new"></i>
									</li>

								</ul>
							</div>
						</ul>
					</div>
					<div class="loginright">
						<ul class="aorder">
							<li><a href="http://localhost/0423/suning/Template/default/">我的订单<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待支付</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待收货</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">待评价</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">修改订单</a>
							</li>

						</ul>

						<ul class="abuy">
							<li><a href="http://localhost/0423/suning/Template/default/">我的易购<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的消息</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的零钱宝</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的收藏</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的优惠券</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">我的云钻</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">会员联盟</a>
							</li>
						</ul>
						<ul>
							<li><a href="http://localhost/0423/suning/Template/default/">易付宝</a>
							</li>
						</ul>
						<ul class="aser">
							<li><a href="http://localhost/0423/suning/Template/default/">服务中心<em></em></a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">帮助中心</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">查找门店</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">退换修</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">维修保养</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">投诉</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">建议反馈</a>
							</li>
							<li class="liheight"><a href="http://localhost/0423/suning/Template/default/">在线客服</a>
							</li>
						</ul>
						    <?php if(!isset($_SESSION['username'])){ ?>
 						<ul>
							<li><a href="<?php echo U('Index/user/login');?>">登录</a>
							</li>
						</ul>
						<ul>
							<li><a href="<?php echo U('Index/user/reg');?>">注册</a>
							</li>
						</ul>
						<ul>
							<li><a href="">购物车</a>
							</li>
						</ul>
						<?php } ?>
						    <?php if(isset($_SESSION['username'])){ ?>
						<ul>
							<li><a href="<?php echo U('index/member/index/');?>"><?php echo $_SESSION['username'];?></a>
							</li>
						</ul>
						<ul>
							<li><a href="<?php echo U('Index/user/loginOut');?>">注销</a>
							</li>
						</ul>
						<ul>
							<li><a href="">购物车</a>
							</li>
						</ul>
						<?php } ?>

					</div>
				</div>
				<!-- 登陆条结束 -->
		<div class="banner">
			<div class="logo">
				<a href="http://localhost/0423/suning/"><img src="http://localhost/0423/suning/Template/default/images/suning.png" height="60" width="190" alt=""></a>
			</div>
			<div class="step">
				<div class="steplist">
					<li class="stepNum">1</li>
					<li class="stepWord">我的购物车</li>
				</div>
				<div class="steplist">
					<li class="stepNum">2</li>
					<li class="stepWord">确认订单</li>
				</div>
				<div class="stepDefaultBg">
					<li class="stepNum">3</li>
					<li class="stepWord">付款</li>
				</div>
				<div class="stepDefaultBg">
					<li class="stepNum">4</li>
					<li class="stepWord">支付成功</li>
				</div>
			</div>

		</div>

<div class="clear"></div>
<form action="" method="post">
<div id="carMain">
<!-- 配送信息开始 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">配送信息</li>
		<li class=" words fright"></li>
	</dvi>
	<div class="address addressshow">
		<li class="addTit">配送地址</li>
		
		<?php foreach ($address as $k=>$v){?>
		<li class="checkAddress sendto" addressid ='<?php echo $v['address_id'];?>'><span class="posi"></span>寄送至： <input type="radio" name="sendto" value="<?php echo $v['address_id'];?>" />
    <?php echo $v['user_address_name'];?>   <?php echo $v['user_address_tel'];?>   <?php echo $v['user_address_place'];?>  <?php echo $v['user_address_all'];?><span class="gobackgShopping makedefault"   addressid ='<?php echo $v['address_id'];?>'>    <?php if($v['user_address_isdefault'] = 0){ ?>设为默认地址<?php } ?>    <?php if($v['user_address_isdefault'] = 1){ ?>默认地址<?php } ?></span></span> <a class="gobackgShopping editAddress" href="javascript:;" addressid ="<?php echo $v['address_id'];?>">修改</a>   <a href='javascript:;' addressid ="<?php echo $v['address_id'];?>" class="gobackgShopping delAddress">删除</a>
   
</li>
		<?php }?>
		<li class="checkAddress add addAddressbtn"><span class="posi"></span>寄送至： <input type="radio" class="add_address_btn" />添加新地址</li>
		
		<div class="add addNewAddress">
			<div class="userInput">
				<li class="left"><span>*</span>收货人:</li>
				<li class="rightInput">
					<input type="text" name="order_receiver" class="order_receiver" />
					<div class=""><span class="alert user_receiverok"></span></div>
					<div class=""><span class=" error user_receiver"></span></div>
				</li>
				<li class="left"><span>*</span>手机：</li>
				<li class="rightInput">
					<input type="text" name='order_user_tel' class="order_user_tel"/>
					<div class=""><span class=" error tel"></span></div>				
					<div class=""><span class="alert telok"></span></div>
				</li>
								<li class="left"><span>*</span>电话：</li>
				<li class="rightInput">
					<input type="text" name='order_phone' />
				</li>
			<li class="left"><span>*</span>所在地区：</li>
				<li class="rightInput">
					<input type="text" name='order_user_place' />
				</li>
			<li class="left"><span>*</span>详细地址：</li>
				<li class="rightInput">
					<input type="text" name='order_address' class="order_address" />
					<div class=""><span class="error order_addressalert"></span></div>				
					<div class=""><span class="alert order_addressok"></span></div>
				</li>
				<li>
					<input type="button" class="saveUserInfo besureAddress" value="确认" />
					<input type="button" class="saveUserInfo editAddressbtn" value="确认" />
					<input type="button" class="saveUserInfo quit" value="取消" />
				</li>
			</div>
		</div>
	</div>
	<!-- 配送信息结束 -->
	<!-- 支付方式开始 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">配送信息</li>
		<li class=" words fright"></li>
	</dvi>
	<div class="address">
		<li class="addTit">选择支付方式</li>
		<li class="checkAddress">在线支付： <input type="radio" name="order_payway" value="3"/>  支持易付宝和各主流银行的信用卡，借记卡消费 <a class="gobackgShopping" href="http://localhost/0423/suning/">查看银行</a> </li>
		<li class="checkAddress add">货到付款： <input type="radio" name="order_payway" value="2"/>  您订单中的商品不支持货到付款</li>
		<li class="checkAddress add">门店付款： <input type="radio"  name="order_payway" value="1"/>    网站下单去就近任意门店付款，支持现金、POS机刷卡 <a class="gobackgShopping" href="http://localhost/0423/suning/">查看门店地址</a> </li>
		<li class="checkAddress add">账户余额支付： <input type="radio" name="order_payway" value="0"/>    账户充值后可以直接购买使用 <a class="gobackgShopping" href="http://localhost/0423/suning/">联系客服充值</a> </li>
		<!--<li><input type="button" class="saveUserInfo" value="保存支付方式" />
				</li>-->
		<div class="add">
			
		</div>
	</div>
	<!-- 支付方式结束 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">商品信息及服务信息  </li>
		<li class=" words fright"> <a class="gobackgShopping" href="http://localhost/0423/suning/index.php/Index/Car/index/"><<回购物车修改商品</a></li>
	</dvi>
	<dvi class="carList">
		<div class="carListTitle">	
		    <li class="googsTitle">商品名称</li>
		    <li class="price">商品价格（元）</li>
		    <li class="nums">数量</li>
		    <li class="doIt">服务信息</li>
		</div>
		<!-- 单条商品信息 -->
		<?php foreach ($cartGoods['goods'] as $k=>$v){?>
		<div class="contentset">			
		    <li class="googsTitle"><?php echo $v['name'];?></li>
		    <li class="price"> ¥<span><?php echo $v['total'];?></span></li>		  
		    <li class="nums"><?php echo $v['num'];?></li>
		    <li class="doIt">免费运费</li>
		</div>
		<?php }?>
		<!-- 单条商品信息 结束 -->
		
	</dvi>
	<dvi class="w990">
		<li class="words shopCarWord fleft h1">结算信息</li>
		<li class=" words fright"></li>
	</dvi>
	
	<div class="shopList">
		<div class="listLfet">
			
		</div>
		<div class="listRight">
			<li class="">商品总金额： </li><li class="price">¥<?php echo $cartGoods['total'];?> </li><li class="">运费(以结算页为准)： </li><li class="price">¥
				<?php if($cartGoods['total']<69){ ?>
				10.00
				<?php }?>
				<?php if($cartGoods['total']>69){ ?>
				0.00
				<?php }?>
			</li>
		</div>

		<div class="settle">
			
			<li class="">已选商品<?php echo $cartGoods['total_rows'];?>件 </li><li class="payable">商品应付金额： </li><li class="price">¥
				<?php 

				if($cartGoods['total'] >69){ 

					echo $cartGoods['total'];

				}else if($cartGoods['total'] <69){

					echo $cartGoods['total'] + 10;

				}
				?>
				
			
			</li><li class="send"><input type="button" class="submit"  /><div class="nogoodschoose">您需先保存配送信息，再提交订单</div><span class="loading"></span>
								<span class="success"></span></li>
	
		</div>
	</div>
	</form>
</div>


		<div class="clear"></div>
		<!--尾部-->
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
		<div class="footer words">
			<li>Copyright© 2002-2015 ，苏宁版权所有 苏ICP备10207551号 苏B1-20130131 苏B2-20130376 出版物经营许可证新出发苏批字第A-243号</li>
			<li>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/kexin.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/chengxin.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/unicom.png" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/dianxin.jpg" alt=""></a>
				<a href="http://localhost/0423/suning/Template/default/"><img src="http://localhost/0423/suning/Template/default/images/dianzi.png" alt=""></a>
			</li>
		</div>
	<!--尾部-->

</body>
</html>